package com.wanmait.recycle.util;

public class FileUtil {

	public static String getExt(String fileName)
	{
		String ext = null;
		if(fileName==null) return ext;
		
		int dotIndex = fileName.lastIndexOf(".");
		if(dotIndex==-1)
		{
			return ext;
		}
		ext = fileName.substring(dotIndex+1);
		return ext;
	}
}









